﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ERPStore.Extensions;

namespace ERPStore.Web.EventConsumers
{
	public class AppStopEventConsumer : EventBrokR.IConsumer<ERPStore.Events.EndApplicationRequestedEvent>
	{
		#region IConsumer<EndApplicationRequestedEvent> Members

		public void Handle(ERPStore.Events.EndApplicationRequestedEvent eventMessage)
		{
			Logging.AsyncLogger.Current.Terminate();
		}

		#endregion
	}
}
